package com.yiren.dbaa.currency.model;

import android.widget.CheckBox;

import com.yiren.backstage.currency.constant.SignalGConstant;

/**
 * Describe CheckBox编辑框改变事件值的保存实体类
 *
 * @author WRX
 * @date 2022/11/8
 */
public class CheckBoxCommonModel {

    /*** 控件 */
    private CheckBox cb;
    /*** 初始值 */
    private boolean initValue;
    /*** 保存的key */
    private String key;

    public CheckBoxCommonModel(CheckBox cb, boolean initValue, String key) {
        this.cb = cb;
        this.initValue = initValue;
        this.key = key;
    }

    public CheckBoxCommonModel(CheckBox cb, String key) {
        this.cb = cb;
        this.initValue = (boolean) SignalGConstant.examConfigMap.get(key);
        this.key = key;
    }

    public CheckBox getCb() {
        return cb;
    }

    public void setCb(CheckBox cb) {
        this.cb = cb;
    }

    public boolean isInitValue() {
        return initValue;
    }

    public void setInitValue(boolean initValue) {
        this.initValue = initValue;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
